import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import Moment from 'moment'

Vue.config.productionTip = false

import iView from 'iview';
import 'iview/dist/styles/iview.css';

Vue.use(iView);

import ZkTable from 'vue-table-with-tree-grid-icon'
Vue.use(ZkTable)

// 定义全局时间戳过滤器
Vue.filter('formatDate', function(value) {
  return Moment(value).format('YYYY-MM-DD HH:mm:ss')
})

import {runConfig} from './assets/config'
Vue.prototype.$runConfig = runConfig;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
